package cn.jinbyte.starter.web.config;

import cn.jinbyte.web.config.ApiLogProperties;
import cn.jinbyte.web.config.LoginLogProperties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

/**
 * 日志配置
 *
 * @author jinty
 */
@Data
@ConfigurationProperties(prefix = StarterConst.CONF_PREFIX)
public class WebLogProperties {

    /**
     * 接口日志配置
     */
    @NestedConfigurationProperty
    private ApiLogProperties apiLog = new ApiLogProperties();

    /**
     * 登录日志配置
     */
    @NestedConfigurationProperty
    private LoginLogProperties loginLog = new LoginLogProperties();


}
